package Java0107;

import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;

public class Java08 {

    public static void main(String[] args) throws IOException {

        // (8)写文件

        FileWriter fileWriter = new FileWriter("d:/person2.txt", true);
        BufferedWriter bufferedWriter = new BufferedWriter(fileWriter);

        for (int i = 0; i < 10; i++) {
            bufferedWriter.write("你好");
        }

        bufferedWriter.close();
        fileWriter.close();

//        IO流体系：InputStream读输入、OutputStream写输出
//
//                字节流byte[]
//        字节输入流：InputStream抽象类
//        字节输出流：OutputStream抽象类
//
//                字符流char[]
//        字符输入流：Reader抽象类
//        字符输出流：Writer抽象类

    }

}